package com.easy.easy.dao;

import com.easy.easy.bean.Order;
import com.easy.easy.bean.Orderinfo;
import com.easy.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderinfoDao {

    int add(@Param("orderinfo") Orderinfo orderinfo);


    int edit(@Param("orderinfo") Orderinfo orderinfo);


    int delete(@Param("orderinfo") int orderid,@Param("userid") int userid);

    List<Orderinfo> getList(@Param("page") Page page, @Param("text") String text, @Param("userid") int userid);

    Orderinfo getOrderById(@Param("orderid") int orderid);

    int getCount(@Param("text") String text,@Param("userid") int userid);

    Orderinfo getOrder(@Param("orderinfo") Orderinfo orderinfo);

    Orderinfo getOrderinfoByUserId(@Param("userid") int userid);
}
